import request from '@/utils/request'
export default async function getSearchResult (sortType = 'all', sortPrice = 0, categoryId = 0, goodsName, page = 1) {
  const result = await request.get('/goods/list&sortType', {
    params: {
      sortType,
      sortPrice,
      categoryId,
      goodsName,
      page
    }
  })
  return result
}
